package com.zx.service;

import com.zx.entity.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        User userName01 = (User) context.getBean("name01");
        User userName02 = (User) context.getBean("name02");
        userName02.print();
        userName01.print();
    }
}
